package zct.proj.util;

import android.graphics.Color;

public class Const {

	public static final String SECTION_PREFIX = "[";
	public static final String SECTION_SUMMARY = "[概述]";
	public static final String SECTION_DETAIL = "[详述]";
	public static final String SECTION_XHJ = "[信号机]";
	public static final String SECTION_DHAN = "[灯或按钮]";
	public static final String SECTION_WCQD = "[无岔区段]";
	public static final String SECTION_DC = "[道岔]";
	public static final String SECTION_LJKG = "[逻辑开关量]";
	public static final String SECTION_DCBS = "[道岔表示]";
	
	
	public static final String SECTION_XXB = "[信息表]";
	
	
	public static final String SECTION_INFO = "[信息表]";
	
	public static final String SUMMARY_KEY_STATIONNAME = "站名";
	public static final String SUMMARY_KEY_SCREENWIDTH = "屏幕宽度";
	public static final String SUMMARY_KEY_SCREENHEIGHT = "屏幕高度";
	public static final String SUMMARY_KEY_LINEWEIGHT = "线宽";
	public static final String SUMMARY_KEY_XSPACING = "X网格大小";
	public static final String SUMMARY_KEY_YSPACING = "Y网格大小";
	public static final String SUMMARY_KEY_CTLCOUNT = "控件总数";
	public static final String SUMMARY_KEY_DCCOUNT = "道岔数目";
	public static final String SUMMARY_KEY_XHJCOUNT = "信号机数目";
	public static final String SUMMARY_KEY_WCQDCOUNT = "无岔区段数目";
	public static final String SUMMARY_KEY_BTNCOUNT = "灯或按钮数目";
	public static final String SUMMARY_KEY_DCDISPCOUNT = "道岔表示数目";
	public static final String SUMMARY_KEY_JYJCOUNT = "绝缘节数目";
	public static final String SUMMARY_KEY_TXTCOUNT = "文本数目";
	public static final String SUMMARY_KEY_SWICOUNT = "逻辑开关量数目";
	
	public static final String DETAIL_KEY_ID = "控件描述";
	
	public static final int MSG_PLAY_SOUND = 0x1;
	public static final int MSG_SWITHCER_CHANGED = 0x2;
	public static final int MSG_STATION_DATA = 0x3;
	public static final String MSG_HND = "MSG_HND";
	public static final int MSG_ERROR = 0x10;
	
	// 信号机开关量（灯颜色）
	public static final int SW_XHJ_CINDEX_RED = 0;
	public static final int SW_XHJ_CINDEX_GREEN = 1;
	public static final int SW_XHJ_CINDEX_YELLOW = 2;
	public static final int SW_XHJ_CINDEX_WHITE = 3;
	public static final int SW_XHJ_CINDEX_BLUE = 4;
	public static final int SW_XHJ_CINDEX_GREEN2 = 5;
	public static final int SW_XHJ_CINDEX_YELLOW2 = 6;
	public static final int SW_XHJ_CINDEX_YBY = 7;				// 黄闪黄
	public static final int SW_XHJ_CINDEX_RED_FLASH = 8;		// 红闪
	public static final int SW_XHJ_CINDEX_WHITE_FLASH = 9;		// 白闪
	public static final int SW_XHJ_CINDEX_GREEN_FLASH = 10;		// 绿闪
	public static final int SW_XHJ_CINDEX_YELLOW_FLASH = 11;	// 黄闪
	public static final int SW_XHJ_CINDEX_GREEN_YELLOW = 12;	// 绿黄
	public static final int SW_XHJ_CINDEX_RED_WHITE = 13;		// 红白
	public static final int SW_XHJ_CINDEX_CLOSE = 14;			// 关闭
	
	public static final int SW_DHAN_CINDEX_SIG = 0;
	public static final int SW_DHAN_CINDEX_GREEN = 1;
	public static final int SW_DHAN_CINDEX_YELLOW = 2;
	public static final int SW_DHAN_CINDEX_RED = 3;
	public static final int SW_DHAN_CINDEX_BLUE = 4;
	public static final int SW_DHAN_CINDEX_WHITE = 5;
	
	public static final int SW_WCQD_CINDEX_RED = 0;
	public static final int SW_WCQD_CINDEX_WHITE = 1;
	
	public static final int SW_DC_CINDEX_FIX = 0;
	public static final int SW_DC_CINDEX_OPP = 1;
	public static final int SW_DC_CINDEX_BEF_RED = 2;
	public static final int SW_DC_CINDEX_BEF_WHITE = 3;
	public static final int SW_DC_CINDEX_AF_FIX_RED = 4;
	public static final int SW_DC_CINDEX_AF_FIX_WHITE = 5;
	public static final int SW_DC_CINDEX_AF_OPP_RED = 6;
	public static final int SW_DC_CINDEX_AF_OPP_WHITE = 7;
	
	
	// 无反转
	public static final int DIR_NORMAL = 0;
	// 垂直翻转
	public static final int DIR_VCOPY = 1;
	// 旋转180度
	public static final int DIR_ROTATE = 2;
	// 水平翻转
	public static final int DIR_HCOPY = 3;
	
	// 信号机大圆半径/间距
	public static final float XHJ_RING_RATE = 0.4f;
	
	// 文字距离图形的距离
	public static final int TEXT_DRAW_DISTANCE = 2;
	// 最小字号
	public static final int MIN_FONT_SIZE = 8;
	public static final int MIN_FONT_SIZE_CHN = 12;
	
	// 信号机绘图用小横线宽度/单位宽度
	public static final float XHJ_SHORT_HLINE_RATE = 0.4f;
	
	public static final String RESPATH_SIMKAI = "fonts/simkai.zip";
	
	public static final String FONT_NAME_KAI = "楷体_GB2312";
	public static final String FONT_NAME_SERIF = "MS Serif";
	public static final float WB_ZOOM_OUT = 1.3f;
	
	// 信号机
	public static final String EQUI_XHJ = "sbXHJ";
	// 文本
	public static final String EQUI_TEXT = "sbWB";
	// 灯和按钮
	public static final String EQUI_DHAN = "sbDHAN";
	// 道岔
	public static final String EQUI_DC = "sbDC";
	// 绝缘节
	public static final String EQUI_JYJ = "sbJYJ";
	// 无岔区段
	public static final String EQUI_WCQD = "sbWCQD";
	
	// 调车矮柱 |O
	public static final int TYPE_XHJ_DCAZ = 0;
	// 调车高柱 |-O
	public static final int TYPE_XHJ_DCGZ = 1;
	// 出发单灯矮柱 |O
	public static final int TYPE_XHJ_CFDDAZ = 2;
	// 出发单灯高柱 |-O
	public static final int TYPE_XHJ_CFDDGZ = 3;
	// 出发双灯矮柱 |OO
	public static final int TYPE_XHJ_CFSDAZ = 4;
	// 出发双灯高柱 |-OO
	public static final int TYPE_XHJ_CFSDGZ = 5;
	// 进站 |-OO
	public static final int TYPE_XHJ_JZ = 6;
	// 区间 |-OO
	public static final int TYPE_XHJ_QJ = 7;
	
	// 灯或按钮 道岔表示
	public static final int TYPE_BTN_DCBS = 0;
	// 灯或按钮 列车按钮
	public static final int TYPE_BTN_LCAN = 1;
	// 灯或按钮 调车按钮
	public static final int TYPE_BTN_DCAN = 2;
	// 灯或按钮 单圈
	public static final int TYPE_BTN_DQ = 3;
	// 灯或按钮 双圈
	public static final int TYPE_BTN_SQ = 4;
	// 灯或按钮 方形
	public static final int TYPE_BTN_FX = 5;
	// 灯或按钮 全箭头
	public static final int TYPE_BTN_ARROW = 6;
	// 灯或按钮 半箭头
	public static final int TYPE_BTN_HALFARROR = 7;
	
	public static final int TYPE_BTN_DC_FIX = 0;
	public static final int TYPE_BTN_DC_OPP = 1;
	
	// 道岔 小道岔定位为直
	public static final int TYPE_DC_XDCZ = 0;
	// 道岔 小道岔定位为弯
	public static final int TYPE_DC_XDCW = 1;
	// 道岔 大道岔定位为直
	public static final int TYPE_DC_DDCZ = 2;
	// 道岔 大道岔定位为弯
	public static final int TYPE_DC_DDCW = 3;
	// 道岔 垂直小道岔定位为直
	public static final int TYPE_DC_CZXDCZ = 4;
	// 道岔 垂直小道岔定位为弯
	public static final int TYPE_DC_CZXDCW = 5;
	
	// 绝缘节 一般绝缘节
	public static final int TYPE_JYJ_NORMAL = 0;
	// 绝缘节 超限绝缘节
	public static final int TYPE_JYJ_CX = 1;
	
	// 无岔区段 信号直线段
	public static final int TYPE_WCQD_XHZX = 0;
	// 无岔区段 信号弯线段
	public static final int TYPE_WCQD_XHWX = 1;
	// 无岔区段 无信号直线段
	public static final int TYPE_WCQD_WXHZX = 2;
	// 无岔区段 无信号弯线段
	public static final int TYPE_WCQD_WXHWX = 3;
	
	public static final int COLOR_DEACTIVE = Color.rgb(102, 102, 153);
	
	public static final String KEY_STATION_NAME = "KEY_STATION_NAME";

	public static final float MAX_ZOOM_RATE = 2.0f;
	
	public static final int MAX_RESOLUTION = 7000000;
}
